<template>
	<view>
		<view class="">
			<plhead :height="headh"></plhead>
			<view class="top">
				<u-status-bar bgColor="#f8f8f8"></u-status-bar>
				<view class="head" :style="{height:headh}">
					<image src="/static/my/title.png" class="head__title" mode=""></image>
				</view>
			</view>
		</view>
		<view class="userinfo">
			<image src="/static/logo.png" class="userinfo__tx" mode="aspectFill"></image>
			<view class="">
				<view class="userinfo__name">
					点击登录
				</view>
				<view class="userinfo__id">
					欢迎登录使用共享电工
				</view>
			</view>
		</view>
		<view class="con">
			<view class="order">
				<view class="u-flex u-flex-y-center u-flex-between order__t">
					<view class="order__title">
						我的订单
					</view>
					<view class="order__more">
						全部订单
						<image src="/static/my/more.png" class="order__more__icon" mode=""></image>
					</view>
				</view>
				<view class="u-flex u-flex-y-center">
					<view class="order__item" v-for="(item,index) in ordertab" :key="index">
						<image :src="'/static/my/t'+index+'.png'" class="order__item__icon" mode=""></image>
						<view class="order__item__text">
							{{item.text}}
						</view>
					</view>
				</view>
			</view>
			<view class="u-flex u-flex-y-center u-flex-between">
				<view class="tab" v-for="(item,index) in tlist" :key="index" @click="navto(item.url)">
					<view class="">
						<view class="tab__name">
							{{item.name}}
						</view>
						<view class="tab__xq">
							查看详情
						</view>
					</view>
					<image v-if="index==0" src="/static/my/yhq.png" class="yhq" mode=""></image>
					<image v-if="index==1" src="/static/my/sf.png" class="sf" mode=""></image>
				</view>
			</view>
			<view class="f">
				<view class="f__item" v-for="(item,index) in flist" :key="index" @click="navto(item.url)">
					<view class="f__item__i">
						<image :src="'/static/my/z'+index+'.png'"  :style="item.st" mode=""></image>
					</view>
					<view class="f__item__label">
						{{item.text}}
					</view>
					<image src="/static/my/more.png" class="f__item__more" mode=""></image>
				</view>
			</view>
		</view>
		
		<tabbar :current="3"></tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				headh:'103rpx',
				ordertab:[
					{text:'待接单',status:0},
					{text:'已接单',status:0},
					{text:'服务中',status:0},
					{text:'已完成',status:0},
				],
				tlist:[
					{name:'我的优惠券',url:'/pages/personal/yhq'},
					{name:'师傅入驻',url:''},
				],
				flist:[
					{text:'地址管理',st:'width: 35rpx;height: 39rpx;',url:''},
					{text:'客服中心',st:'width: 45rpx;height: 42rpx;',url:''},
					{text:'意见反馈',st:'width: 36rpx;height: 34rpx;',url:''},
					{text:'设置',st:'width: 37rpx;height: 40rpx;',url:''},
					{text:'切换',st:'width: 37rpx;height: 40rpx;',url:'/pages/index/index'},
				]
			};
		},
		onLoad() {
			uni.hideTabBar()
		}
	}
</script>

<style lang="scss">
page{
	background-color: #f8f8f8;
}
.head{
	display: flex;
	align-items: center;
	padding: 0 30rpx;
	
	&__title{
		width: 64rpx;
		height: 32rpx;
	}
}
.userinfo{
	padding: 11rpx 24rpx 41rpx;
	display: flex;
	align-items: center;
	&__tx{
		width: 130rpx;
		height: 130rpx;
		margin-right: 24rpx;
		border-radius: 50%;
	}
	&__name{
		font-family: PingFang-SC, PingFang-SC;
		font-weight: 800;
		font-size: 32rpx;
		color: #000000;
		line-height: 32rpx;
	}
	&__id{
		font-family: PingFang-SC, PingFang-SC;
		font-weight: bold;
		font-size: 24rpx;
		color: #716D6D;
		line-height: 24rpx;
		margin-top: 20rpx;
	}
}
.con{
	padding: 0 30rpx 0 21rpx;
	.order{
		padding-bottom: 36rpx;
		background: #FFFFFF;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		&__t{
			padding: 33rpx 22rpx;
		}
		&__title{
			font-family: PingFang-SC, PingFang-SC;
			font-weight: 800;
			font-size: 28rpx;
			color: #000000;
			line-height: 28rpx;
		}
		&__more{
			font-family: PingFang-SC, PingFang-SC;
			font-weight: 800;
			font-size: 24rpx;
			color: #A1A1A1;
			line-height: 24rpx;
			display: flex;
			align-items: center;
			&__icon{
				width: 12rpx;
				height: 21rpx;
				margin-left: 16rpx;
			}
		}
		&__item{
			width: 25%;
			display: flex;
			flex-direction: column;
			align-items: center;
			&__icon{
				width: 51rpx;
				height: 60rpx;
				margin-bottom: 20rpx;
			}
			&__text{
				font-family: PingFang-SC, PingFang-SC;
				font-weight: bold;
				font-size: 26rpx;
				color: #060606;
				line-height: 26rpx;
			}
		}
	}
}
.tab{
	width: 311rpx;
	height: 119rpx;
	background: #FFFFFF;
	border-radius: 20rpx 20rpx 20rpx 20rpx;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24rpx;
	padding-left: 26rpx;
	&__name{
		font-family: PingFang-SC, PingFang-SC;
		font-weight: bold;
		font-size: 28rpx;
		color: #030606;
		line-height: 28rpx;
		
	}
	&__xq{
		font-family: PingFang-SC, PingFang-SC;
		
		font-size: 24rpx;
		color: #A1A1A1;
		line-height: 24rpx;
		margin-top: 10rpx;
	}
	.yhq{
		width: 70rpx;
		height: 62rpx;
		margin-right: 25rpx;
	}
	.sf{
		width: 69rpx;
		height: 78rpx;
		margin-right: 21rpx;
	}
}
.f{
	padding: 35rpx 25rpx 1rpx 10rpx;
	
	background: #FFFFFF;
	border-radius: 20rpx 20rpx 20rpx 20rpx;
	margin-top: 24rpx;
	&__item{
		display: flex;
		align-items: center;
		margin-bottom: 56rpx;
		&__i{
			width: 73rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			
		}
		&__label{
			font-family: PingFang-SC, PingFang-SC;
			font-weight: bold;
			font-size: 27rpx;
			color: #030606;
			line-height: 27rpx;
			flex: 1;
		}
		&__more{
			width: 13rpx;
			height: 23rpx;
		}
	}
}
</style>
